package lab03.test03;

import javax.swing.*;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws FileNotFoundException {
        String path = "D:\\test.txt";
        String value = "beijing欢迎你！";
        try {
            FileOutputStream fileOutputStream = new FileOutputStream(path);
            fileOutputStream.write(value.getBytes());
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                ProgressMonitor fileOutputStream = null;
                fileOutputStream.close();
            }finally {

            }
        }

            }

}
